home *** CD-ROM | disk | FTP | other *** search
/ Internet 53 / INTERNET53.iso / pc / software / windows / building / coldfusion studio evaluation / data1.cab / CFS_Wizards / CFML / Data Entry.vtm < prev    next >
Encoding:
Text File  |  1998-10-08  |  3.5 KB  |  84 lines

  1. <WIZARD name="DataEntryWizard" caption="Data Entry Wizard" image="..\\images\\wizardoutput.bmp">
  2.  
  3. <!--- testing parameters --->
  4. <PARAM name="ApplicationName" value="" required="yes">
  5. <PARAM name="DataSource" value="" required="yes">
  6. <PARAM name="Table" value="" required="yes">
  7. <PARAM name="EntryFields" value="" required="yes">
  8.  
  9.  
  10. <TEMPLATE
  11.   name="DataEntry_EntryForm.wml"
  12.   outputFile="$${SafeApplicationName}_EntryForm.cfm"
  13.   outputPath="$${Location}"
  14.   description="Data entry template contains the data entry form. When the form data gets submitted this page calls the following template."
  15. >
  16. <TEMPLATE
  17.   name="DataEntry_EntryAction.wml"
  18.   outputFile="$${SafeApplicationName}_EntryAction.cfm"
  19.   outputPath="$${Location}"
  20.   description="The entry action template inserts the record with entered data into the specified table. It also informs user that the data have been entered successfully."
  21. >
  22.  
  23.  
  24.  
  25. <!-------------- Enter application params ---------------------->
  26. <PAGE name="Page1" caption="Data Entry Application" image="..\\images\\Main.bmp">
  27.  
  28.     <INPUT name="editApplicationName" param="ApplicationName" required="yes"
  29.         validationMsg="You cannot leave the Application Name field blank">
  30.  
  31.     <INPUT name="editLocation" param="Location"    required="yes"
  32.         validationMsg="You cannot leave the Location field blank">
  33.  
  34. </PAGE>
  35.  
  36.  
  37. <!--------------- Select data source ------------------------>
  38. <PAGE name="Page2" caption="Data Source" image="..\\images\\SelectData.bmp">
  39.  
  40.     <PARAM name="ListBoxLabel" value="Select data source:">
  41.     <PARAM name="ListBoxDescription"
  42.         value="Choose the data source, which contains the table you wish to insert the data into.\n\nIf your database is not registered as ODBC data source, open the ODBC administrator in Control Panel and add system data source for this database.">
  43.     <PARAM name="RemoveParams" value="Table,EntryFields">
  44.     
  45.     <INPUT name="cbDataSources" param="DataSource" required="yes"
  46.         validationMsg="You did not select the data source. Please select one before proceeding.">
  47.  
  48. </PAGE>
  49.  
  50.  
  51.  
  52. <!---------------- Select table -------------------------->
  53. <PAGE name="Page3a" caption="Table" image="..\\images\\SelectTable.bmp">
  54.  
  55.     <PARAM name="DataSource" value="$${DataSource}">
  56.     <PARAM name="ListBoxLabel" value="Select database table:">
  57.     <PARAM name="ListBoxDescription"
  58.         value="Choose the database table you would like to insert data into.\n\n\A table is a collection of records with a set of fields you can insert data into. Selecting a table will allow the wizard to offer you a list of fields you can insert data into">
  59.     <PARAM name="RemoveParams" value="EntryFields">
  60.  
  61.     <INPUT name="cbTables" param="Table" required="yes"
  62.         validationMsg="You did not select the table. Please select one before proceeding.">
  63.  
  64. </PAGE>
  65.  
  66.  
  67. <!---------------- Select entry fields ----------------------->
  68. <PAGE name="Page4" caption="Entry Fields" image="..\\images\\SelectFields.bmp">
  69.  
  70.     <PARAM name="DataSource" value="$${DataSource}">
  71.     <PARAM name="Tables" value="$${Table}">
  72.     <PARAM name="ListBoxLabel" value="Select the entry fields:">
  73.     <PARAM name="ListBoxDescription"
  74.         value="Choose the fields you would like the user to be able to insert data into. Press Ctrl or Shift together with the mouse click in order to enter more than one field. Do not select fields which are automatically populated (identity fields).">
  75.     <PARAM name="MultiSelect" value="yes">
  76.  
  77.     <INPUT name="lstFields" param="EntryFields" required="yes"
  78.         validationMsg="You have to select at least one entry field.">
  79.     
  80. </PAGE>
  81.  
  82.  
  83. </WIZARD>
  84.